package cn.zysheep.controller;

import cn.zysheep.service.RegService;
import cn.zysheep.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 挂号服务
 * </p>
 *
 * @author : lyw
 * @since : 2023/11/17 11:00
 */
@RestController
@RequestMapping("/api/reg")
@AllArgsConstructor
@Api(tags = "SpringBoot + 自定义注解 + AOP 打造通用开关")
public class RegController {

    private final RegService regService;

    @ApiOperation(value = "测试")
    @PostMapping("/createOrder")
    public Result createOrder() {

        return regService.createOrder();
    }
}
